{extend name="public/container"}
{block name="content"}
<div class="layui-fluid" style="background: #fff;margin-top: -10px;">
    <div class="layui-card">
        <div class="layui-card-header"><p style="font-size: 18px">首页地址</p></div>
        <div class="layui-card-body">
           <p>{$data['store_url']}</p>
        </div>
    </div>
    <div class="layui-card">
        <div class="layui-card-header"><p style="font-size: 18px">修改首页地址</p> </div>
        <div class="layui-card-body">
            <p><button type="button" class="layui-btn layui-btn-sm" onclick="$eb.createModalFrame(this.innerText,'{:Url('my_store_edit')}')">修改首页地址</button></p>
        </div>
    </div>
    <div class="layui-card">
        <div class="layui-card-header"><p style="font-size: 18px">首页二维码</p></div>
        <div class="layui-card-body">
          <img src="{$data['code_url']}" width="150px">
        </div>
    </div>
    <div class="layui-card">
        <div class="layui-card-header"><p style="font-size: 18px">绑定微信公众号验证文件{if $adminInfo['is_file']==1}【已绑定】{/if}</p></div>
        <button type="button" class="layui-btn" id="test1">
            <i class="layui-icon">&#xe67c;</i>上传文件
        </button>
    </div>

</div>
<script src="{__ADMIN_PATH}js/layuiList.js"></script>
<script>
    layui.use('upload', function(){
        var upload = layui.upload;

        //执行实例
        var uploadInst = upload.render({
            elem: '#test1' //绑定元素
            ,url: "{:url('my_upload')}" //上传接口
            ,accept:"file"
            ,done: function(res){
               var msg=res.msg;
                layer.msg(msg);
            }
            ,error: function(){
                //请求异常回调
            }
        });
    });
</script>
{/block}
